package com.ciwong.epaper.modules.epaper.ui;

import android.view.View;
import android.widget.TextView;

import com.ciwong.mobilelib.ui.BaseActivity;
import com.ciwong.mobilelib.utils.BaseIntentFlag;
import com.ciwong.epaper.R;
import com.ciwong.epaper.modules.epaper.bean.Answer;

/**
 * 老师点评界面
 *
 * @author sugy
 * @version ciwong v.1.0 2015/9/29 15:38
 * @since ciwong v.1.0
 */
public class TeacherRemarkActivity extends BaseActivity
{

    private TextView tvTitleRemark, tvRemark;

    @Override
    protected int setView()
    {
        return R.layout.activity_remark;
    }

    @Override
    protected void findViews()
    {
        tvTitleRemark = (TextView) findViewById(R.id.remark_title_tv);
        tvRemark = (TextView) findViewById(R.id.tv_remark);
    }

    @Override
    protected void initEvent()
    {

    }

    @Override
    protected void init()
    {
        Answer answer = (Answer) getIntent()
                .getSerializableExtra(BaseIntentFlag.INTENT_FLAG_OBJ);
        if (answer != null)
        {
            setTitleText(answer.getResourceName());

            tvRemark.setText(answer.getComment());
        }

        if (tvRemark.getText().length() > 0)
        {
            tvTitleRemark.setVisibility(View.VISIBLE);
        }
    }

    @Override
    protected void loadData()
    {

    }
}
